﻿using InfluxDB.Client;

namespace Basic.InfluxTSDB;

public class InfluxTSDB : ITimeSerialDB
{
    private InfluxDBClient _client;

    public InfluxTSDB()
    {

    }

    public void Init(string url, string token)
    {
        _client = new InfluxDBClient(url, token);
        var bucketApi = _client.GetBucketsApi();
        var orgapi = _client.GetOrganizationsApi();

        var writeAsync = _client.GetWriteApiAsync();
        //writeAsync.WriteMeasurementAsync
    }

}